import React from 'react'
import { useNavigate } from 'react-router-dom'
// 广告
import Adimg from '../../../assets/Ad.png'
import './index.css'

export default function Ad() {
    const navigate = useNavigate()
    return (
        <div className='ad'>
            <img src={Adimg} alt="" onClick={() => setTimeout(() => {
                navigate('/my')
            }, 1000)} />
        </div>
    )
}
